﻿<!--问答详情-->
<style type="text/css">
.file_fj{overflow: hidden; padding:20px 0;}
.file_fj div{text-align: center;float: left;    overflow: hidden;max-width: 100px;text-overflow: ellipsis;}
.file_fj a{text-decoration: none;color: #000;}
</style>
<div ng-controller="questionDetailController">
  <div class="wenda_main_tool rongqi"   style="height:20px;    margin-bottom: 10px;"   onclick="window.history.back()">
                <span class="sort" >
                    <i class="iconfont">&#xe71f;</i>  {{'Back'|T}}
                </span>
            </div>
             <input type="file" nv-file-select="" uploader="uploader"  style="display:none;" id="FJUpload">
            <div class="wendaxiangqing rongqi" style="min-height: auto;">

                    <!--遮盖层-->
                    <div ng-show="!isDelQues">
                   
                   <!--标题-->
                    <h1 ng-bind="quesInfo.title"></h1>
                    <!--标签-->
                    <div class="taglist">
                        <span class="tag" ng-repeat="item in classList">
                            <a href="javascript:void(0)" ng-bind="item.knName" ></a>
                        </span>
                    </div>
                    <!--问答详情-->
                    <div class="text" ng-bind-html="quesInfo.content | to_html"> </div>
                    <div class="text file_fj" ng-if="quesInfo.spare.length>0">
                        <div  ng-repeat="file in quesInfo.spare" title="附件：{{file.name}}">
                        <a href="{{file.path}}" download="{{file.name}}" target="_blank">
                            <img ng-src="/images/fileicon/{{file.type}}_56.png" src="/images/fileicon/qita_56.png" onerror="javascript:this.src='/images/fileicon/qita_56.png'"/>
                            <br/>
                            {{file.name}}
                        </a>
                        </div>
                    </div>
                    <div class="tiwenren">
                    <div  labelshow-directive="{{quesInfo.questionerId}}"  style="float: left;">
                         <img ng-src="{{quesInfo.questionerAvatar}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'" width="18" height="18" /></div>
                          {{'Questioner'|T}}：{{quesInfo.questionerName}} 
                          <i class="iconfont">&#xe6fd;</i>{{quesInfo.createDate}}
                          <i class="iconfont">&#xe76a;</i>{{quesInfo.browseNum}}{{'browse'|T}} 
                          <i class="iconfont">&#xe69b;</i>{{quesInfo.replyNum}}{{'individual'|T}}{{'Post'|T}} 
                          <!--管理-->
                         <div class="guanli">
                             <a href="javascript:void(0)" ng-click="collectionQuestion()"><i class="iconfont">{{quesInfo.isCollection?'&#xe72f;':'&#xe67d;'}}</i>{{quesInfo.isCollection?('AlreadyCollected'|T):('Collection'|T)}}</a>
                             <!--专栏管理人员和创建人有 编辑删除权限-->
                             <!--<a href="#" ng-if="xmanager||userInfo.user_ID==quesInfo.questionerId"><i class="iconfont">&#xe633;</i>编辑</a> -->
                             <a href="javascript:void(0)" ng-if="xmanager||userInfo.user_ID==quesInfo.questionerId" ng-click="delQuestionInfo()" ><i class="iconfont">&#xe636;</i>{{'Delete'|T}}</a> 
                             <!--专栏管理人员，和系统管理人员有审核权限-->
                            <a href="javascript:void(0)" ng-if="userInfo.powerLV==2||userInfo.powerLV==1||xmanager" ng-click="toPass(quesInfo)">
                            
                                <i class="iconfont">{{quesInfo.state==2?'&#xe66f;':'&#xe764;'}}</i>{{quesInfo.state==2?('Audited'|T):('Unaudited'|T)}}
                            </a>
                         </div>
                    </div>

                    

                    

                    

                    <div class="tiwenkuang">
                        <div class="kuang" style="position: relative;">
                        <textarea placeholder="{{'InputAnswerContent'|T}}" style="width: 99%;border: 0; height:100px;" ng-model="myText" >
                        </textarea>
                        <!--<textarea ng-model="oldText" placeholder="输入回答内容，按Enter快速发送" ></textarea>-->
                        <button class="btn queding" style="position: absolute;bottom: 8px;right: 0;" ng-click="addReplay()">{{'SendOut'|T}}</button>
                        <button class="btn quxiao" style="position: absolute;bottom: 8px;right: 60px;" ng-click="addFile()">{{fileObj.name!=undefined&&fileObj.name.length>0?('AlreadyAdded'|T):('AddAttachments'|T)}}</button>
                        </div>
                    </div>
        </div>

                <div class="wenda_main_list_div" style="margin-top: 20px;" ng-if="isDelQues">
                        <div style="margin: 150px auto 20px; text-align: center; "><i class="iconfont" style="font-size: 150px;">&#xe731;</i></div><!--&#xe659;无权限图标-->
                        <center>{{'TheQuestionAndAnswerHasBeenDeleted'|T}}</center>
                        <!--<center>您无权访问本数据</center>-->
                </div>
            </div>



     <div class="wendaxiangqing rongqi" style="margin-top: 20px;" >
        <h1>{{'RelatedAnswer'|T}}({{numCount}})</h1>
        <!--注意，本帖的贴主功能，与其他人员查看功能不同-->
                    <div class="daanlist" ng-class="{manyi:item.isSolve}" ng-repeat="item in List | orderBy:['isSolve']:true">
                        <div class="strong"><i class="iconfont">&#xe707;</i>{{'SatisfactoryAnswer'|T}}</div>
                        <div class="text" ng-bind="item.areplayContent"></div>
                        <div class="text file_fj" ng-if="item.spare.length>0">
                        <div  ng-repeat="file in item.spare" title="附件：{{file.name}}">
                        <a href="{{file.path}}" download="{{file.name}}" target="_blank">
                            <img ng-src="/images/fileicon/{{file.type}}_56.png" src="/images/fileicon/qita_56.png" onerror="javascript:this.src='/images/fileicon/qita_56.png'"/>
                            <br/>
                            {{file.name}}
                        </a>
                        </div>
                    </div>
                        <div class="tiwenren">
                        <div   labelshow-directive="{{item.replyUserId}}"  style="float: left;">
                         <img ng-src="{{item.replyAvatar}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'" width="18" height="18" /></div> {{item.replyUserName}}
                         <i class="iconfont">&#xe6fd;</i>{{item.replyTime}}
                         <div class="guanli">
                             <a href="javascript:void(0)" ng-click="dianzhan(item)"><i class="iconfont">{{item.isPoint?'&#xe730;':'&#xe72e;'}}</i> {{item.pointNum}}</a> 
                             <a href="javascript:void(0)" ng-click="showReplay(item)"><i class="iconfont">&#xe6bd;</i>{{item.showplay?('TakeUp'|T):('Reply'|T)}}</a>
                             <!--提问者可以设置满意答案-->
                             <a href="javascript:void(0)" ng-if="userInfo.user_ID==quesInfo.questionerId" ng-click="setManyi(item)">
                                <i class="iconfont">{{item.isSolve?'&#xe65a;':'&#xe749;'}}</i>{{item.isSolve?('CancellationOfSatisfaction'|T):('SetUpToBeSatisfied'|T)}}
                             </a>
                             <!--回答者和提问者，管理员可以删除回复-->
                              <a href="javascript:void(0)" ng-if="userInfo.user_ID==quesInfo.questionerId||xmanager||userInfo.user_ID==item.replyUserId" ng-click="delReplay(item)"><i class="iconfont">&#xe636;</i>{{'Delete'|T}}</a> 
                              <!--举报人不限制-->
                              <a href="javascript:void(0)" ng-if="false"><i class="iconfont">&#xe645;</i>{{'Report'|T}}</a> 
                          </div>

                            <!--回复-->
                            <div class="tiwenkuang" ng-if="item.showplay">
                                <!--子集-->
                                <div class="daanlist" ng-repeat="ziitem in item.ziList">
                                    <div class="strong" ng-if="false"><i class="iconfont">&#xe707;</i>{{'SatisfactoryAnswer'|T}}</div>
                                    <div class="text" ng-bind="ziitem.areplayContent"></div>
                                    <a ng-if="item.numCount>item.ziList.length">{{'see'|T}}{{'whole'|T}}（{{item.numCount}}）{{'Strip'|T}}</a>
                                    <div class="tiwenren">
                                    <div labelshow-directive="{{ziitem.replyUserId}}"  style="float: left;">
                                         <img ng-src="{{ziitem.replyAvatar}}" src="/images/avatar.png" onerror="javascript:this.src='/images/avatar.png'" width="18" height="18"  /> </div>{{ziitem.replyUserName}}
                                         <i class="iconfont">&#xe6fd;</i>{{ziitem.replyTime}}
                                         <div class="guanli">
                                             <a href="javascript:void(0)" ng-click="dianzhan(ziitem)"><i class="iconfont">&#xe730;</i>{{ziitem.isPoint?'&#xe730;':'&#xe72e;'}} {{ziitem.pointNum}}</a> 
                                             <!--回答者和提问者，管理员可以删除回复-->
                                              <a href="javascript:void(0)" ng-if="userInfo.user_ID==quesInfo.questionerId||xmanager||userInfo.user_ID==ziitem.replyUserId" ng-click="delZiReplay(item,ziitem.areplayId)"><i class="iconfont">&#xe636;</i>{{'Delete'|T}}</a> 
                                              <!--举报人不限制-->
                                              <a href="javascript:void(0)" ng-if="false"><i class="iconfont">&#xe645;</i>{{'Report'|T}}</a> 
                                          </div>
                                    </div>
                                </div>

                                <div class="kuang" style="position: relative;">
                                <textarea placeholder="{{'InputAnswerContent'|T}}" style="width: 99%;border: 0;" ng-model="item.myText" ng-keyup="AddZiQuesEnter(item,$event)" ></textarea>
                                <button class="btn queding" style="position: absolute;    bottom: 3px;    right: 0;" ng-click="AddZiQuesButton(item)">{{'SendOut'|T}}</button>
                                </div>
                            </div>


                        </div>
                    </div>
                    <div class="huidashu" ng-if="numCount>List.length" ng-click="loadMore()">{{'Common'|T}}{{numCount}}{{'individual'|T}}{{'Post'|T}}</div> 
     </div>
</div>